import {post, get, DCAPI} from "libs/api"

const SOCKETIO = `${DCAPI}socketIo/`

export function getSocketMessage (query) {
  return post(`${SOCKETIO}findByCondition`, JSON.stringify(query))
}

export function setMessageStatus (ids) {
  return get(`${SOCKETIO}setRead`, JSON.stringify({ids}))
}
